﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Utilities
{
    public class FileUtil
    {
        public static void saveFile(string strExpectedFileName, string strContentToBeSaved)
        {
            if (File.Exists(strExpectedFileName))
            {
                return;
            }
            using (StreamWriter sw = File.CreateText(strExpectedFileName))
            {
                sw.WriteLine(strContentToBeSaved);
                sw.Close();
            }
        }

        public static void copyFile(string strFilePathSource, string strFilePathDestination)
        {
            File.Copy(strFilePathSource, strFilePathDestination);
        }

        public static void deleteFile(string strFilePathDeletion)
        {
            File.Delete(strFilePathDeletion);
        }
    }
}
